
{% if shelf %}

	<h4>{{ shelf.name }}</h4> 
	
	{% if shelf.public %}
		<p>public</p>
	{% else %}
		<p>private</p>
	{% endif %}
	<a href="/shelf/list">View All Shelves</a>
	<p>This shelf is owned by <strong>{{ shelf.owner.nickname }}</strong></p>
	
	{% if shelf.items %}
	
		
		<table class="meta" width="100%">
		
			<colgroup>
				<col style="width:10px;" /> 
    			<col class="oce-first" /> 
    		</colgroup>
		
			<thead>
				<tr>
					<th><!-- checkbox --></th>
					<th>Name</th>
					<th>Options</th>
				</tr>
			</thead>
			<tbody>
	
			{% for item in shelf.items %}
	
			<tr>
				<td><input type="checkbox" name="{{ item.key }}" /></td>
				<td><a href="/shelf/{{ shelf.key }}/{{ item.key }}">{{ item.name }}</a></td>
				<td>
					<a href="/shelf/{{ shelf.key }}/{{ item.key }}/delete" title="Delete {{ item.name }}" alt="Delete {{ item.name }}"><img border="0" src="/images/gui/icons/mini-trash.png" /></a>
					<a href="/shelf/{{ shelf.key }}/{{ item.key }}/edit" title="Edit {{ item.name }}" alt="Edit {{ item.name }}"><img border="0" src="/images/gui/icons/mini-edit.png" /></a>
				</td>
			</tr>
	
			{% endfor %}
	
			</tbody>
		</table>
		
	
	{% else %}
	
		<p>Sorry, this shelf appears to be empty...</p>
	
	{% endif %}	
	
	<p><a href="/shelf/{{ shelf.key }}/add"><img border="0"	src="/images/gui/additem.png" /></a></p>	
	
{% else %}
	<p>Sorry, this shelf deosn't exist!</p>
{% endif %}
